<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<include file="Common:cssjs" />
<script type="text/javascript">
var ar = $.dialog.through;
var Menudelete = function(t){
	ar({
		title: '系统询问',
		content:'你确定要删除嘛？删除后不可恢复！',
		button:[{
			name: '确定删除',
			callback:function(){
				window.location = t.href;
			}
			},{
			name: '取消',
			focus: true
			}]
	});
}
</script>
</head>
<body>
<div class="subnav">
  <div class="content-menu ib-a blue line-x"> <a href='javascript:;' class="on"><em>菜单管理</em></a><span>|</span><a href='{:U("Menu/add",array("parentid"=>0))}' ><em>添加菜单</em></a> </div>
</div>
<style type="text/css">
	html{_overflow-y:scroll}
</style>
<form name="myform" action="{:U('Menu/listorders')}" method="post">
  <div class="pad-lr-10">
    <div class="table-list">
       <div class="explain-col">
注意：菜单深度只支持3级！
       </div>
       <div class="bk10"></div>
      <table width="100%" cellspacing="0">
        <thead>
          <tr>
            <th width="80">排序</th>
            <th width="100">id</th>
            <th>菜单英文名称</th>
            <th width="80">状态</th>
            <th width="200">管理操作</th>
          </tr>
        </thead>
        <tbody>
        <volist name="Menu" id="vo">
          <tr>
            <td align='center'><input name='listorders[{$vo['id']}]' type='text' size='3' value='{$vo['listorder']}' class='input-text-c'></td>
            <td align='center'>{$vo['id']}</td>
            <td >{$vo['name']}</td>
            <td align='center'><eq name="vo['status']" value="1">显示<else/>不显示</eq></td>
            <td align='center'><a href="{:U("Menu/add",array("parentid"=>$vo['id']))}">添加分类</a> | <a href="{:U("Menu/edit",array("id"=>$vo['id']))}">修改</a> | <a href="{:U("Menu/delete",array("id"=>$vo['id']))}" onclick="Menudelete(this);return false;">删除</a></td>
          </tr>
          <volist name="vo['lower']" id="lo">
          <tr>
            <td align='center'><input name='listorders[{$lo['id']}]' type='text' size='3' value='{$lo['listorder']}' class='input-text-c'></td>
            <td align='center'>{$lo['id']}</td>
            <td >&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;├─ {$lo['name']}</td>
            <td align='center'><eq name="lo['status']" value="1">显示<else/>不显示</eq></td>
            <td align='center'><a href="{:U("Menu/add",array("parentid"=>$lo['id']))}">添加子菜单</a> | <a href="{:U("Menu/edit",array("id"=>$lo['id']))}">修改</a> | <a href="{:U("Menu/delete",array("id"=>$lo['id']))}" onclick="Menudelete(this);return false;">删除</a></td>
          </tr>
          <volist name="lo['lower']" id="loo">
          <tr>
            <td align='center'><input name='listorders[{$loo['id']}]' type='text' size='3' value='{$loo['listorder']}' class='input-text-c'></td>
            <td align='center'>{$loo['id']}</td>
            <td >&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;│ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;├─ {$loo['name']}</td>
            <td align='center'><eq name="loo['status']" value="1">显示<else/>不显示</eq></td>
            <td align='center'><a href="{:U("Menu/edit",array("id"=>$loo['id']))}">修改</a> | <a href="{:U("Menu/delete",array("id"=>$loo['id']))}" onclick="Menudelete(this);return false;">删除</a></td>
          </tr>
          </volist>
          </volist>
          </volist>
        </tbody>
      </table>
      <div class="btn">
        <input type="submit" class="button" name="dosubmit" value="排序" />
      </div>
    </div>
  </div>
  </div>
</form>
</body>
</html>
